const tutorialController = require("../controller/tutorial.controller");
const express = require("express");
const router = express.Router();

router.get("/",tutorialController.findAll);
router.get("/id/:id",tutorialController.findById);
router.get("/published",tutorialController.findAllPublished);

router.post("/",tutorialController.save);
router.put("/:id",tutorialController.updateById);
router.delete("/:id",tutorialController.removeById);
module.exports = router;